//
//  LabelView.m
//  09_Work 通讯录
//
//  Created by dllo on 16/7/25.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "LabelView.h"

@implementation LabelView

+ (UIView *)createNameLabelFrame:(CGRect)nameFrame nameLabelText:(NSString *)nameText ageLabelFrame:(CGRect)ageFrame ageLabelText:(NSString *)ageText sexLabelFrame:(CGRect)sexFrame sexLabelText:(NSString *)sexText phoneLabelFrame:(CGRect)phoneFrame phoneLabelText:(NSString *)phoneText {
    UIView *view = [[UIView alloc] init];
    UILabel *nameLabel = [[UILabel alloc] initWithFrame:nameFrame];
    nameLabel.text = nameText;
    UILabel *ageLabel = [[UILabel alloc] initWithFrame:ageFrame];
    ageLabel.text = ageText;
    UILabel *sexLabel = [[UILabel alloc] initWithFrame:sexFrame];
    sexLabel.text = sexText;
    UILabel *phone = [[UILabel alloc] initWithFrame:phoneFrame];
    phone.text = phoneText;
    
    [view addSubview:nameLabel];
    [view addSubview:ageLabel];
    [view addSubview:sexLabel];
    [view addSubview:phone];
    return view;
}


@end
